package com.cqcet.wenchuang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
<<<<<<< HEAD
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Collection;
=======
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
>>>>>>> ae245ae (数据表和实体类的修改)

/**
 * 商家和管理员公用的表
 */
@Data
<<<<<<< HEAD
@ApiModel(value = "用户管理员实体类")
=======
>>>>>>> ae245ae (数据表和实体类的修改)
public class Admin implements Serializable {
    //序列化的版本号
    private static final long serialVersionUID = 1L;

<<<<<<< HEAD
    //主键，自动生成
    @ApiModelProperty(value = "ID")
    private Long id;

    //用户名
    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty("头像")
    private String icon;

    //密码
    @ApiModelProperty(value = "密码")
    private String password;

    //手机号
    @ApiModelProperty(value = "手机号")
    private String phone;

    //1为商家，2为管理员
    @ApiModelProperty(value = "身份标识:1商家,2管理员,3用户")
    private Integer type;

    //发货地址
    @ApiModelProperty(value = "发货地址")
    private String address;

    //状态:0禁用,1正常
    @ApiModelProperty(value = "状态:0禁用,1正常")
    private Integer status;

    //逻辑删除，0删除
    @TableLogic(value = "1", delval = "0")
    @ApiModelProperty(value = "逻辑删除标识:0删除,1未删除")
    private Integer isDelete;
=======
    private Long id;

    private String username;

    private String password;
    //1为商家，2为管理员
    private String type;
>>>>>>> ae245ae (数据表和实体类的修改)

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
